'use strict';

angular.module('snPaas')
.directive('envList',['baseUrl',function(baseUrl){
    return {
      restrict:'A',
      priority:-1,
      templateUrl :baseUrl.static+'template/directive/envList.html',
      replace:true,
      scope:{
         elData: '=',
         elIcon: '='
      },
      // controller:function(){},
      link:function postLink(scope,iElement,iAttrs){
        scope.baseUrl = baseUrl.static;
        scope.edit = function(env){
         scope.$emit('env.edit',env);
        };
        scope.deleteEnv = function(env){
         scope.$emit('env.delete',env);
        };
      


      }
   }

}]);
